package com.campusbook.service;

import com.campusbook.model.Book;
import org.springframework.web.multipart.MultipartFile;
import java.io.IOException;
import java.util.List;

public interface BookService {
    Book findById(Long id);
    List<Book> findAvailableBooks();
    List<Book> findByOwnerId(Long ownerId);
    void save(Book book);
    void update(Book book);
    void delete(Long id);
    boolean borrowBook(Long bookId, Long borrowerId);
    boolean returnBook(Long bookId, Long borrowerId);
    String saveCoverImage(MultipartFile file) throws IOException;
}
